package com.gaoshu.service.serviceimpl;

import com.gaoshu.bean.Departments;
import com.gaoshu.bean.Doctor;
import com.gaoshu.bean.Registeredtype;
import com.gaoshu.mapper.DoctorMapper;
import com.gaoshu.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DoctorServiceImpl implements DoctorService {

    @Autowired
    private DoctorMapper doctorMapper;

    //查询医生列表信息   动态查询
    @Override
    public List<Doctor> selectDoctor(Doctor doctor) {
        return doctorMapper.selectDoctor(doctor);
    }

    //修改医生信息  回显科室
    @Override
    public List<Departments> selectDepartments() {
        return doctorMapper.selectDepartments();
    }

    //修改医生信息  回显挂号类别
    @Override
    public List<Registeredtype> selectRegisteredtype() {
        return doctorMapper.selectRegisteredtype();
    }
}
